(function(angular) {
	'use strict';
	angular.module("fs.router").config([ 'routerServiceProvider', function(routerServiceProvider) {

		// simpleState:{
		// __ignore : true or false,
		// __inheritController : true or false
		// __dependentFiles : [url or moduleName...],
		// __templateUrl : url,
		// __i18nConfig : url,
		// __layoutConfig : url,
		// __validatorConfig : url,
		// __authorizationConfig : url,
		// subState:{...}
		// }
		var simpleConfig = {
			'demo' : {
				'icons' : {
					'__dependentFiles' : [ 'resources/demo/icons/iconsController.js' ],
					'templateUrl' : 'resources/demo/icons/icons.html',
					'controller' : 'iconsController'
				},
				'notifications' : {
					'__dependentFiles' : [ 'resources/demo/demoService.js', 'resources/demo/notifications/notificationsController.js' ],
					'templateUrl' : 'resources/demo/notifications/notifications.html',
					'controller' : 'notificationsController'
				},
				'customerSelector' : {
					'__dependentFiles' : [ 'resources/demo/demoService.js', 'resources/demo/customerSelector/customerSelector.js' ],
					'templateUrl' : 'resources/demo/customerSelector/customerSelector.html',
					'controller' : 'customerSelectorController'
				},
				'calendar' : {
					'__dependentFiles' : [ 'resources/demo/demoService.js', 'resources/demo/calendar/calendarController.js' ],
					'templateUrl' : 'resources/demo/calendar/calendar.html',
					'controller' : 'calendarController'
				},
				'dialogs' : {
					'__dependentFiles' : [ 'resources/demo/demoService.js', 'resources/demo/dialog/dialogController.js' ],
					'templateUrl' : 'resources/demo/dialog/dialog.html',
					'controller' : 'dialogController'
				},
				'fileupload' : {
					'__dependentFiles' : [ 'resources/demo/demoService.js', 'resources/demo/fileupload/fileUploadController.js' ],
					'templateUrl' : 'resources/demo/fileupload/fileUpload.html',
					'controller' : 'fileUploadController'
				},
				'amountrange' : {
					'__dependentFiles' : [ 'resources/demo/demoService.js', 'resources/demo/amountrange/amountRangeController.js' ],
					'templateUrl' : 'resources/demo/amountrange/amountRange.html',
					'controller' : 'amountrangeController'
				},
				'formComponent' : {
					'__dependentFiles' : [ 'resources/demo/demoService.js', 'resources/demo/formComponent/formComponentController.js' ],
					'templateUrl' : 'resources/demo/formComponent/formComponent.html',
					'controller' : 'formComponentController'
				},
				'slider' : {
					'__dependentFiles' : [ 'resources/demo/demoService.js', 'resources/demo/slider/sliderController.js' ],
					'templateUrl' : 'resources/demo/slider/slider.html',
					'controller' : 'sliderController'
				}
			},
			'menu' : {
				'submenu' : {
					'__i18nConfig' : 'resource/common/home.do',
					'__layoutConfig' : 'layout/common/home.do',
					'__validatorConfig' : 'validator/common/home.do',
					'__authorizationConfig' : 'authorization/common/home.do'
				}
			},
			"error" : {
				"E500" : {
					__inheritController : true,
					'__i18nConfig' : 'resource/common/E500.do',
					'__layoutConfig' : 'layout/common/E500.do',
					'__validatorConfig' : 'validator/common/E500.do',
					'__authorizationConfig' : 'authorization/common/E500.do'
				},
				"E404" : {
					__inheritController : true,
					'__i18nConfig' : 'resource/common/E404.do',
					'__layoutConfig' : 'layout/common/E404.do',
					'__validatorConfig' : 'validator/common/E404.do',
					'__authorizationConfig' : 'authorization/common/E404.do'
				}
			},
			'dashboard' : {
				'panels' : {
					'__dependentFiles' : [ 'resources/nux/js/common/service/dashboardPanelService.js', 'resources/${theme}/nux/js/service/dashboard/dashboardService.js', 'resources/${theme}/nux/js/service/notification/notificationService.js']
				},
				'programFinancing' : {
					'view' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/programFinancing/programFinancingService.js']
					}
				},
				'programSnapshotFinancing' : {
					'view' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/programSnapshotFinancing/programSnapshotFinancingService.js',
						                       'resources/${theme}/nux/js/service/dashboard/dashboardService.js',
						                       'resources/nux/js/common/service/formatService.js',
						                       'resources/nux/js/common/service/dateService.js',
						                       'resources/nux/js/common/service/arithService.js']
					}
				},
				'currentCreditUtilization' : {
					'view' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/currentCreditUtilization/currentCreditUtilizationService.js']
					}
				},
				'futurePaymentDueSummary' : {
					 'view' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/futurePaymentDueSummary/futurePaymentDueSummaryService.js' ]
					 },
					 'customize' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/futurePaymentDueSummary/futurePaymentDueSummaryService.js' ]
					 }
				 },
				 'customize' : {
					 'currency' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/dashboard/customizeCurrencyService.js' ]
					 }
				 },
				 'futurePaymentDueBank' : {
					 'view' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/futurePaymentDueBank/futurePaymentDueBankService.js' ]
					 },
					 'customize' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/futurePaymentDueBank/futurePaymentDueBankService.js' ]
					 }
				 },
			},
			'workflow' : {
				'wfTxn' : {
					'list' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/workflow/workflowService.js' ]
					}
				}
			},
			'myCompany' : {
				'list' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/myCompany/myCompanyService.js' ]
				}
			},
			'helpReport' : {
				'list' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/helpReport/helpReportService.js' ]
				}
			},
			'notification' : {
				'panelList' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/notification/notificationService.js' ]
				},
				'view' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/notification/notificationService.js' ]
				}
			},
			'piBatch' : {
				'createInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piBatch/piBatchService.js' ]
				},
				'updateInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piBatch/piBatchService.js' ]
				},
				'verifyInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piBatch/piBatchService.js' ]
				}
			},
			'piUpload' : {
				'uploadInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piUpload/piUploadService.js' ]
				},
				'errorInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piUpload/piUploadService.js' ]
				},
				'updateInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piUpload/piUploadService.js' ]
				},
				'verifyInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piUpload/piUploadService.js' ]
				},
				'pendingInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piUpload/piUploadService.js' ]
				},
				'processingInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piUpload/piUploadService.js' ]
				}
			},
			'piCancel' : {
				'initList' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piCancel/piCancelService.js' ]
				},
				'verifyInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piCancel/piCancelService.js' ]
				},
				'viewInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/piCancel/piCancelService.js' ]
				}
			},
			'picreditCancel' : {
				'initList' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/picreditCancel/picreditCancelService.js' ]
				},
				'verifyInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/picreditCancel/picreditCancelService.js' ]
				},
				'viewInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/picreditCancel/picreditCancelService.js' ]
				}
			},
			'paymentsBatch' : {
				'list' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/paymentsBatch/paymentsBatchService.js' ]
				},
				'view' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/paymentsBatch/paymentsBatchService.js' ]
				}
			},
			'apInvBatch' : {
				'createInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/apInvBatch/apInvBatchService.js' ]
				},
				'updateInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/apInvBatch/apInvBatchService.js' ]
				},
				'verifyInit' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/apInvBatch/apInvBatchService.js' ]
				}
			},
			'report' : {
				'issuedPI' : {
					'init' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/issuedpi/issuedPIService.js' ]
					}				
				},
				'outstandingPI' : {
					 'init' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/outstandingpi/outstandingPIService.js' ] 
					 }
				},
				'settledPI' : {
					'init' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/settledpi/settledPIService.js' ]
					}	
				},
				'creditExposure' : {
					'list' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/creditExposure/creditExposureService.js' ]
					},
					"txnDetail" : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/creditExposure/creditExposureService.js' ]
					}
				},
				'fundingReport' : {
					'init' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/fundingreport/fundingReportService.js' ]
					}
				},
				'statementActivityReport' : {
					'init' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/statementActivityReport/statementActivityReportService.js' ]
					},
					'seller' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/statementActivityReport/statementActivityReportService.js' ]
					}
				},
				'statement' : {
					'list' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/statement/statementService.js' ]
					}
				},
				'suppliers' : {
					'list' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/suppliers/suppliersService.js' ]
					}
				},
				'miscDocuments' : {
					'list' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/miscDocuments/miscDocumentsService.js' ]
					},
					'view' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/miscDocuments/miscDocumentsService.js' ]
					}
				},
				'PN' : {
					'receivedPN' : {
						'init' : {
							'__dependentFiles' : []
						}
					},
					'nonDiscountedPN' : {
						'init' : {
							'__dependentFiles' : []
						}
					},
					'discountedPN' : {
						'init' : {
							'__dependentFiles' : []
						}
					}
				},
				'sellerStatement' : {
					'list' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/sellerStatement/sellerStatementService.js' ]
					}
				},
				'sellerMiscDocuments' : {
					'list' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/sellerMiscDocuments/sellerMiscDocumentsService.js' ]
					},
					'view' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/sellerMiscDocuments/sellerMiscDocumentsService.js' ]
					}
				},
				'cashMovementDetail' : {
					 'seller' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/cashMovementDetail/cashMovementDetailService.js' ]
					 }
				 },
				 'cashMovement' : {
					 'seller' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/cashMovement/cashMovementService.js' ]
					 }
				 },
				'latestActivity' : {
					'list' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/report/latestActivity/latestActivityReportService.js' ]
					}
				},
			},
			
			'paymentInquiry' : {
				'buyer' : {
						  '__dependentFiles' : [ 'resources/${theme}/nux/js/service/paymentsInquiry/payment/paymentService.js' ]
			            },
			    'seller' : {
							  '__dependentFiles' : [ 'resources/${theme}/nux/js/service/paymentsInquiry/payment/paymentService.js' ]
				        }
			 },
         	'remittanceInquiry' : {
				'buyer' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/paymentsInquiry/remittance/remittanceService.js' ]
					},
				'seller' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/paymentsInquiry/remittance/remittanceService.js' ]
					}
			  },
			'creditMemoInquiry' : {
				'buyer' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/paymentsInquiry/creditMemo/creditMemoService.js' ]
					},
				'seller' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/paymentsInquiry/creditMemo/creditMemoService.js' ]
					}
			},
			'consolidatedInvoiceInquiry' : {
				'list' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/consolidatedInvoiceInquiry/consolidatedInvoiceInquiryService.js' ]
				}
		    },
		    'pendingPaymentsBatch' : {
				'list' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/pendingPaymentsBatch/pendingPaymentsBatchService.js' ]
				},
				'view' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/pendingPaymentsBatch/pendingPaymentsBatchService.js' ]
				},
				'detail' : {
					'__dependentFiles' : [ 'resources/${theme}/nux/js/service/pendingPaymentsBatch/pendingPaymentsBatchService.js' ]
				}
			 },
			 'fpds' : {
				 'view' : {
					 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/fpds/fpdsService.js' ]
				 },
				 'customize' : {
					 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/fpds/fpdsService.js' ]
				 }
			 },
			 'cashPlanner' : {
				 'quickFunding' : {
					 'init' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
					 },
			 		 'preview' : {
							'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
					  },
					  'reject' : {
							'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
					  },
					  'process' : {
							'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
					  }
				 },
				 'financeRequest' : {
					 'init' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
					 },
				 	'detail' : {
					 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				 	}
				 },
				 'financeRequestStatus' : {
					 'init' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
					 },
					 'detail' : {
						 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
					 }
				 },
				 'requestSummary' : {
					    '__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				 },
				 'completed' : {
					    '__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				 },
				 'preview' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				  },
				 'process' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				  },
				 'individualPaymentReject' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				  },
				  'dueDatePaymentReject' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				  },
				 'rejectPreview' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				  },
				  'rejectSubmitSuccess' : {
						'__dependentFiles' : [ 'resources/${theme}/nux/js/service/discount/discountService.js' ]
				  }
			 },
			 'assetRepayment' : {
				 'viewPending' : {
					 '__dependentFiles' : [ 'resources/${theme}/nux/js/service/assetRepayment/assetRepaymentService.js' ]
				 }
			 }
			//from fsrms end
		};
		routerServiceProvider.setSimpleStates(simpleConfig, 'poi');
	} ]);
})(angular);
